package com.aptech.oas.util;

import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;

public class SessionFactoryUtil {

	private static SessionFactory sf;
	
	static {
		Configuration configuration=new Configuration();
		sf=configuration.configure().buildSessionFactory();
	}
	
	public static SessionFactory get(){
		return sf;
	}
	
	public static void close(){
		sf.close();
	}
}
